package com.bwie.controller;

import com.bwie.mapper.TbDictMapper;
import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import net.bytebuddy.implementation.bind.annotation.Pipe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/6/24 10:58
 * @Version 1.0
 */
@RestController
@RequestMapping("/shop/dict")
public class DictController {

    @Autowired
    TbDictService tbDictService;

    /**
     * 获取字典列表数据
     * @param typeId
     * @return
     */
    @PostMapping("/getDietList/{typeId}")
    public R getDictList(@PathVariable("typeId") Integer typeId){
        return tbDictService.getDictList(typeId);
    }
}
